GoDiagram Win Reference
SortByZOrder(GoObject[]) Method

an array of GoObjects in layers of this layer collection; this array is modified
Sort an Array of GoObjects by their Z-order position in these layers.
Syntax
'Declaration
 
Public Overloads Sub SortByZOrder( _
   ByVal a() As GoObject _
) 
public void SortByZOrder( 
   GoObject[] a
)

Parameters

a
an array of GoObjects in layers of this layer collection; this array is modified
Remarks

This method does not modify the order of any objects in any layer--it simply modifies the argument array by sorting the objects by their current Z-order in these layers. For example, if you have a few selected objects, you can use this method to find the selected object which is in front of the other selected objects. That would be the last object in the array after calling this method.

If one or more elements of the argument array a are not GoObjects that belong to one of these layers, the resulting sort order is indeterminate. In many circumstances you can easily create an array of GoObjects by calling CopyArray.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoLayerCollection Class
GoLayerCollection Members
Overload List
SortByZOrder(GoCollection) Method

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback